package com.axc.common.utils;


/**
 * @Author AXC yfq900108
 */

//LayUi 分页类
public  class PageLayUi_Info {


    private int limit;//每页条数
    private int page;//当前页码
    private int offset;//sql跳过的条数
    private int total;//总条数
    
    private String sort;//排序字段
    private String order;//排序方式

	public PageLayUi_Info() {
//		this.offset= (page-1)*limit;
	}

	public PageLayUi_Info(int page,int limit,int total) {
//		this.offset= (page-1)*limit;
		this.limit=limit;
		this.total=total;
	}
    
    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
    	this.offset=offset;
    }
    
    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }


    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }


    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
        if(page>0)
        {
        	this.offset= (page-1)*limit;
        }
        else {
        	this.offset= 0;
        }
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    
}
